package us.mooresr.webtroopmanager.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

public class UserSummary implements IsSerializable, Comparable<UserSummary> {
	private Long id;
	private String userName;
	private String realName;
	
	@SuppressWarnings("unused")
	private UserSummary()  {
		
	}
	public UserSummary(Long id, String userName, String realName) {
		super();
		this.id = id;
		this.userName = userName;
		this.realName = realName;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getRealName() {
		return realName;
	}
	public void setRealName(String realName) {
		this.realName = realName;
	}
	@Override
	public int compareTo(UserSummary arg0) {
		return this.realName.compareTo(arg0.getRealName());
	}
	
	

}
